package com.ddogring.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ddogring.business.domain.Comment;

import java.util.List;

/**
 * @BelongsProject: eshop
 * @BelongsPackage: com.ddogring.business.service
 * @Author: DdogRing
 * @CreateTime: 2023-01-30  11:21
 * @Description: TODO
 * @Version: 1.0
 */
public interface ICommentService extends IService<Comment> {

    /**
     * @description: 根据商品id查询评论
     * @author: DdogRing
     * @date: 2023/2/1 16:27
     * @param: [commodityId]
     * @return: java.util.List<com.ddogring.business.domain.Comment>
     **/
    List<Comment> selectByCommodityId(Integer commodityId);

    /**
     * @description: 单商品评价列表
     * @author: DdogRing
     * @date: 2023/2/9 17:41
     * @param: [commodityId]
     * @return: java.util.List<com.ddogring.business.domain.Comment>
     **/
    List<Comment> getCommentByCommodityId(Integer commodityId);
}
